const state = {
  width: 0,
  height: 0
}

const mutations = {
  UPDATE_WIDTH (state, width) {
    state.width = width
  },
  UPDATE_HEIGHT (state, height) {
    state.width = height
  }
}

const actions = {
  updateWidth ({ commit }, width) {
    commit('UPDATE_WIDTH', width)
  },
  updateHeight ({ commit }, height) {
    commit('UPDATE_HEIGHT', height)
  }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
